GetReportText

Syntax: @GetReportText ReportName, StringVar

The @GetReportText command can be used to get the text from a report object ReportName (i.e. the contents of the report window) and place it into a string variable StringVar.

This has many uses. For example, you may be generating reports using HTML, where @GetReportText can then be used to capture your report texts into several strings. You could then write the report texts to external files and call an external browser, passing a file name (i.e. a starting page). This would enable a whole HTML page structure to be generated and called rather than just one single page.

Example

@GetReportText Grade_rep, Text_str

would copy the text from the report called Grade_rep into the string variable called Text_str.